// Decompiled by DJ v3.7.7.81 Copyright 2004 Atanas Neshkov  Date: 2007-9-15 18:54:19

// Decompiler options: packimports(3) fieldsfirst ansi 
// Source File Name:   r2.java

package com.zelix;

import java.awt.Component;
import java.awt.Container;
import java.awt.event.ActionEvent;
import java.awt.event.KeyEvent;
import java.util.EventObject;
import javax.swing.*;

// Referenced classes of package com.zelix:
//            q2, eo, to, yw, 
//            wu, m4, tb, nc, 
//            j0

public final class r2 extends q2
    implements eo
{

    JButton x;
    private static String z[];

    public r2(JFrame jframe, String s, String s1, boolean flag, String s2, nc anc[], yw yw1)
    {
        super(jframe, s, s1, flag, s2, anc, yw1);
    }

    public void actionPerformed(ActionEvent actionevent)
    {
label0:
        {
            boolean flag = tb.b;
            Object obj = actionevent.getSource();
            if(obj == super.n)
            {
                p();
                if(!flag)
                    break label0;
            }
            if(obj == super.o)
            {
                j();
                if(!flag)
                    break label0;
            }
            if(obj == x)
            {
                w();
                if(!flag)
                    break label0;
            }
            if(obj == super.p)
                l();
        }
    }

    public void keyPressed(KeyEvent keyevent)
    {
label0:
        {
            boolean flag = tb.b;
            if(keyevent.getKeyCode() != 10)
                break label0;
            Object obj = keyevent.getSource();
            if(obj == x)
            {
                w();
                if(!flag)
                    break label0;
            }
            if(obj == super.n)
            {
                p();
                if(!flag)
                    break label0;
            }
            if(obj == super.o)
            {
                j();
                if(!flag)
                    break label0;
            }
            if(obj == super.p)
                l();
        }
    }

    public void keyReleased(KeyEvent keyevent)
    {
    }

    public void keyTyped(KeyEvent keyevent)
    {
    }

    void w()
    {
        super.v = true;
        a();
        String s = super.i.d();
        super.e.a(super.g, new wu(s));
    }

    void a(j0 j0, String s, StringBuffer stringbuffer, Container container)
    {
        x = new JButton(z[5]);
        x.setToolTipText(to.b(to.V));
        x.addActionListener(this);
        x.addKeyListener(this);
        container.add(x, z[7]);
        super.n = new JButton(s);
        super.n.setToolTipText(to.b(to.nb));
        super.n.addActionListener(this);
        super.n.addKeyListener(this);
        container.add(super.n, z[4]);
        super.o = new JButton(z[3]);
        super.o.setToolTipText(to.b(to.Z));
        super.o.addActionListener(this);
        super.o.addKeyListener(this);
        container.add(super.o, z[2]);
        super.p = new JButton(z[1]);
        super.p.setToolTipText(to.b(to.ab));
        super.p.addActionListener(this);
        super.p.addKeyListener(this);
        container.add(super.p, z[6]);
        stringbuffer.append(z[0]);
    }

    private static String dees(char[] chs) {
        for (int i = 0; i < chs.length; i++) {
            byte key = 0;
            switch (i % 5) {
                case 0:
                    key = 0xe;
                    break;
                case 1:
                    key = 18;
                    break;
                case 2:
                    key = 62;
                    break;
                case 3:
                    key = 124;
                    break;
                default:
                    key = 114;
                    break;
            }
            chs[i] ^= key;
        }
        return new String(chs).intern();
    }

    static 
    {
        String as[];
        as = new String[8];
        as[0] = "~`[\n\033agM>\006`<J\023\0023vW\016\"o|[\020\\l}J\b\035c9\013G\002|wH\025\035{a|\b\034 q[\022\006k`fA\021a|J\035\033`wLR\005gvJ\024X? \021MB>)N\016\027x{Q\t\001LfPR\005gvJ\024OcsT\023\000LfP+\033jfVG\002|wH\025\035{a|\b\034 z[\025\025ff\003\021\023d}L>\006`Z[\025\025ff\005\023\031LfPR\006ab\003\030\033|B_\022\027b<\\\023\006z}SWG5}U>\006`<]\031\034zwL$Om}P\b\023g|[\016\\y{Z\b\032$!\tSC>\"\005\023\031LfPR\005gvJ\024OcsT\023\000LfP+\033jfVG\035ePJ\022\\fwW\033\032z/S\035\030a`|\b\034FwW\033\032z)]\035\034mwR>\006`<J\023\0023}U>\006`<J\023\0025q_\022\021k~|\b\034 q[\022\006k`fA\021a|J\035\033`wLR\005gvJ\024X8 \021MB>)]\035\034mwR>\006`<I\025\026zz\003\021\023d}L>\006`EW\030\006f)]\035\034mwR>\006`<V\031\033izJA\037oxQ\0160z|v\031\033izJG\032k~N>\006`<J\023\0023}U>\006`<J\023\0025z[\020\002LfPR\021k|J\031\000V/]\023\034zsW\022\027|<I\025\026zz\024DE!#\016LIfwR\f0z|\020\013\033jfVA\037oxQ\0160z|i\025\026zz\005\024\027bb|\b\034 z[\025\025ff\003\021\023d}L>\006`Z[\025\025ff\005\021\023d}L>\006`Z[\025\025ff\003\021\023v:N\016\027x{Q\t\001LfPR\026kt_\t\036zZ[\025\025ff\022\\\035ePJ\022\\jwX\035\007bfv\031\033izJPRmsP\037\027bPJ\022\\jwX\035\007bfv\031\033izJPRfwR\f0z|\020\030\027hsK\020\006FwW\033\032z;\005\021\023d}L>\006`EW\030\006f/S\035\n&bL\031\004g}K\0170z|\020\030\027hsK\020\006Y{Z\b\032\"2Q\0270z|\020\030\027hsK\020\006Y{Z\b\032\"2]\035\034mwR>\006`<Z\031\024ogR\b%gvJ\024^.z[\020\002LfPR\026kt_\t\036zEW\030\006f;";
        as[1] = "FwR\f";
        as[2] = "msP\037\027bPJ\022";
        as[3] = "MsP\037\027b";
        as[4] = "ay|\b\034";
        as[5] = "^`[\n\033agM";
        as[6] = "fwR\f0z|";
        as[7] = "~`[\n\033agM>\006`";
        for (int i = 0; i < as.length; i++) {
            as[i] = dees(as[i].toCharArray());
        }
        z = as;

    }
}